# extract training and test data sets
tar -zxvf training_data.tar.gz
tar -zxvf test_data.tar.gz

tar -zxvf distortion_training_data.tar.gz
tar -zxvf distortion_test_data.tar.gz

tar -zxvf rotation_training_data.tar.gz
tar -zxvf rotation_test_data.tar.gz

tar -zxvf lines_training_data.tar.gz
tar -zxvf lines_test_data.tar.gz

# build FANN input files - full version
java -cp dist/CaptchaBuster.jar fileIO.ImageToFANN -train=training_data -test=test_data -order=mixed -charset=0aA -proportion=0.05

# build FANN input files - 0-9 digits set
java -cp dist/CaptchaBuster.jar fileIO.ImageToFANN -train=distortion_training_data -test=distortion_test_data -order=mixed -charset=0 -proportion=0.05
java -cp dist/CaptchaBuster.jar fileIO.ImageToFANN -train=rotation_training_data -test=rotation_test_data -order=mixed -charset=0 -proportion=0.05
java -cp dist/CaptchaBuster.jar fileIO.ImageToFANN -train=lines_training_data -test=lines_test_data -order=mixed -charset=0 -proportion=0.05

exit 0
